import request from '@/utils/request'

export function loginAPI(data) {
    return request({
        url:'/login',
        method:'POST',
        data
    })
}

export function registerAPI(data) {
    return request({
        url:'/register',
        method:'POST',
        data
    })
}

export function reSetPasswordAPI(data) {
    return request({
        url:'/reSetPassword',
        method:'PUT',
        data
    })
}


export function sendEmailAPI(data) {
    return request({
        url:'/sendEmail',
        method:'POST',
        params:data
    })
}

export function upload(data){
    return request({
        url:'/file/upload',
        method:'POST',
        data
    })
}